<?php
// +----------------------------------------------------------------------
// | author: thinkphp
// +----------------------------------------------------------------------

namespace app\api\controller;


use app\api\logic\TravelersLogic;

/**
 * 用户控制器
 * Class UserController
 * @package app\api\controller
 */
class TravelersController extends BaseApiController
{
    public function all()
    {
        $result = TravelersLogic::getAllData($this->userId);
        return $this->data($result);
    }

    /**
     * @notes 详情
     * @return \think\response\Json
     */
    public
    function detail()
    {
        $id = $this->request->get('id/d');
        $result = TravelersLogic::detail($id);
        return $this->data($result);
    }


}